Readline with Python under Win32

Category: Geeks r Us

Post 1 by TylerK (This site is so "educational") on Thursday, 12-Mar-2009 17:54:46

How can I add readline (or a port of readline) to the Python distribution under Win32 and use it in a platform-neutral fashion? I found the readline5 port for Windows, and copied readline5.dll to C:Python26DLLs. If I want to use it, would I just use

try:
import readline
except importError:
import readline5

in the program I am writing/modifying? Any help would be appreciated.

Post 2 by SoaringOnMusic (Generic Zoner) on Tuesday, 17-Mar-2009 20:09:31

That seems right to me. As long as that is the name of the module. Hope it worked for you. I'm no expert though.

Post 3 by TylerK (This site is so "educational") on Tuesday, 17-Mar-2009 21:13:56

It didn't work, got a traceback saying there was no module called readline5.